<template>
  <div class="img-box"><img class="img" v-if="d.image" :src="d.image"><span v-else>未添加图片</span></div>
</template>

<script>
export default {
  props: {
    d: Object
  }
}
</script>

<style scoped>
  .img-box {
    height: 100%;
  }
  .img {
    width: 100%;
    height: 100%;
    display: block;
  }
</style>
